package com.gomefinance.noappender;

import com.gomefinance.producer.KafkaProducerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangfuqiang3@gome.com.cn
 * @version 1.0
 * @date 2024/12/28
 * @description:
 **/
@RestController
@RequestMapping("/kafkaNo")
public class NoKafkaController {

    private static final Logger logger = LoggerFactory.getLogger(NoKafkaController.class);

    @PostMapping("/no/hello")
    public String publishMessage(@RequestParam String message) {
        logger.info("no send message kakfa" + message);
        return "no send message kakfa:" + message;
    }
}
